/**********************************************************************************
// Rock Hearder File
// 
// Creation:	10 Out 2009
// Updated:		11 Out 2009
// Compiler:	Visual Studio 2008
//
// Notes:		Defines a randomly generated rock
//
**********************************************************************************/

#ifndef _ROCK_H_
#define _ROCK_H_

#include "Geometry.h"
#include "Types.h"

/**********************************************************************************/

class Rock : public Poly
{
private:
	int width;							// maximum width of rock
	int height;							// maximum height of rock
	float spin;							// rock natural spin

	int RangedRand(int min, int max);	// return random number between min and max

public:
	Rock(int w, int h, float s);		// creates a rock with the specified width, height and spin
	int GetWidth()  { return width;  }	// get rock width
	int GetHeight() { return height; }  // get rock height
	float GetSpin() { return spin;   }  // get rock spin
	void Update()   { Rotate(spin);  }	// update rock behaviour
	void Randomize();					// randomize rock shape
};

/**********************************************************************************/

#endif